<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<style>
.pageFormContent label{width: 100px;}
.pageFormContent p{width: 95%;}
span.error{left: 280px;}
</style>
<div class="pageContent">
	<form method="post" action="updateBrand?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<input type="hidden" name="brandId" value="${brand.id}" />
		<div class="pageFormContent" layoutH="58">
			<p>
				<label>品 名:</label>
				<select name="productType" class="required combox">
					<option value="">-选择品名-</option>
					<c:forEach var="pro" items="${productList }">
						<option value="${pro.id }" ${pro.id==brand.productId ? "selected='selected'" : "" }>${pro.productName }</option>
					</c:forEach>
				</select>
			</p> 
			<p>
				<label>品 牌: </label>
				<input name="brandName" type="text" maxlength="32" size="27" value="${brand.brandName }"  class="required"/>
				<input name="oldBrandName" type="hidden" maxlength="16"  value="${brand.brandName }" />
			</p>
			<p>
				<label>备 注: </label>
				<textarea rows="3" cols="24" maxlength="128" name="brandDesc">${brand.brandDesc }</textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
